import { ref } from "vue";
import PageContent from "@/components/page-content";
export function usePageSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>();
  const handlequeryBtnClick = (queryInfo: any) => {
    pageContentRef.value?.getPageDate(queryInfo);
  };
  const handleResetClick = () => {
    pageContentRef.value?.getPageDate();
  };
  return [handlequeryBtnClick, handleResetClick, pageContentRef];
}
